Xbasic

*add_days Function

Syntax

dim newTime as T = *ADD_DAYS(time as T, days as N)

Arguments

timeTime

A time value.

daysNumeric

The number of days to add to the time value. Days can be a negative value.

Returns

newTimeTime

Returns the time value incremented by days.

Description

Add days to date or time.

Example

dim time as t
time = now()
? time
= 10/12/2017 08:54:05 89 am

dim increment as n
increment = round(rand()*100,0)
? increment
= 29

? *add_days(time, increment)
= 11/10/2017 08:54:05 89 am

See Also